package com.sss.hloster03;
import java.util.Scanner;

public class TestFor04 {

	public static void main(String[] args) {
		int highNum = 0;
		int sumBasSalary = 0;
		Scanner input =new Scanner(System.in);
		for(int i=1;i<=10;i++) {
			System.out.print("请输入第"+i+"个工程师的底薪");
			int basSalary = input.nextInt();
			if (basSalary>=6000) {
				highNum = highNum +1;//高薪人员计数
				sumBasSalary = sumBasSalary + basSalary;//高薪人员底薪求和
			}
		}
        System.out.println("10个Java工程师中，高新人员比例为："+highNum/10.0*100 + "%");
        System.out.println("高薪人员平均底薪为："+sumBasSalary/highNum);
	}

}
